package qq.android.wan.qq.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import qq.android.wan.qq.R;

/**
 * Created by Administrator on 2015/12/11.
 */
public class DynamicFragment extends Fragment implements View.OnClickListener{
    private TextView tv_clear_data;
    private View view;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view=inflater.inflate(R.layout.fragment_tab3_main,null);
        initUI();
        initListener();
        return view;
    }

    private void initUI() {
        tv_clear_data=(TextView)view.findViewById(R.id.tv_clear_data);
    }

    private void initListener() {
        tv_clear_data.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.tv_clear_data:
                clearData();
                break;
            default:break;
        }
    }

    private void clearData() {
    }
}
